package buchwald.martin;

public class ListaEnlazada {
	
	Nodo first;
	
	public ListaEnlazada(){
		first = new NodoVacio();
	}
	
	public boolean isEmpty(){
		return first.isEmpty();
	}
	
	public int size(){
		return first.size();
	}
	
	public void addLast(Object dato){
		this.first = this.first.add(dato);
	}
	
	public void addFirst(Object data){
		this.first = new NodoLleno(data, this.first);
	}
	
	public Object first() throws AssertionError{
		return this.first.getData();
	}
	
	public void removeFirst() throws AssertionError{
		this.first = this.first.next();
	}
	
}


